package com.hanserwei.community.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 业主信息表
 */
@Schema(description = "业主信息表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`owner`")
public class Owner implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 业主ID，主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "业主ID，主键")
    private Integer id;

    /**
     * 业主姓名
     */
    @TableField(value = "user_name")
    @Schema(description = "业主姓名")
    private String userName;

    /**
     * 联系电话
     */
    @TableField(value = "tel")
    @Schema(description = "联系电话")
    private String tel;

    /**
     * 性别：男/女
     */
    @TableField(value = "sex")
    @Schema(description = "性别：男/女")
    private String sex;

    /**
     * 身份证号码
     */
    @TableField(value = "`identity`")
    @Schema(description = "身份证号码")
    private String identity;

    /**
     * 关联房屋ID
     */
    @TableField(value = "house_id")
    @Schema(description = "关联房屋ID")
    private Integer houseId;

    /**
     * 备注信息
     */
    @TableField(value = "remarks")
    @Schema(description = "备注信息")
    private String remarks;

    /**
     * 登录密码
     */
    @TableField(value = "`password`")
    @Schema(description = "登录密码")
    private String password;

    /**
     * 是否删除：0-未删除，1-已删除
     */
    @TableField(value = "is_delete")
    @Schema(description = "是否删除：0-未删除，1-已删除")
    private Integer isDelete;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    @Schema(description = "删除时间")
    private LocalDateTime deleteTime;
}